<?php


namespace app\api\model;


use think\Model;

/*
 * 价格分类
 * */
class Tariff extends Model
{

    // 表名
    protected $name = 'tariff';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;


    public function getTavern()
    {
        $res = self::field('id,name')->order('weigh desc')->select();
        return api_message($res);
    }

}